package com.longge;

/**
 * @program: my-code
 * @description:
 * @author: longge
 * @create: 2021-05-09 22:59
 */
public class SquareIsWhite {
    public boolean squareIsWhite(String coordinates) {
        char[] chars = coordinates.toCharArray();
        int x = (chars[0] - 'a') % 2;
        int y = (chars[1] + 1) % 2;
        boolean[][] board = new boolean[][]{{false, true}, {true, false}};
        return board[x][y];
    }
}
